﻿@using ElingOA6_Admin_DSJCJ.Common;
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>@GlobalConstant.CONSTRING_SYSTITLE</title>

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/checkinput.js", true)" type="text/javascript"></script>

    @if (false)
    {
        <script src="../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
    }
    <style type="text/css">
  

    body { background:#27a0e5;}
.login { width:1000px; height:750px; margin:0 auto; background:url(@Url.Content("~/Content/images/login01.jpg"));}

.login .login-logo { width:576px; height:91px; float:left; margin:100px 0 0 212px; _display:inline;}
.login .login-div { width:426px; height:277px; float:left; margin:50px 0 0 282px;  background:url(@Url.Content("~/Content/images/login02.jpg")); _display:inline;}
.login .login-title { width:100%; float:left; margin-top:45px; text-align:center; color:#4699c7; font-size:23px; font-weight:bold;}
.login .login-dl { width:100%; float:left; color:#357497;}
.login .login-dl input { width:230px; height:28px; line-height:28px; border:#b6dded 1px solid;}
.login .login-dl .button1 { width:110px; height:33px; background:url(@Url.Content("~/Content/images/login03.jpg")); text-align:center; color:#FFF; font-size:14px; border:0;}
.login .login-dl .button2 { width:110px; height:33px; background:url(@Url.Content("~/Content/images/login04.jpg")); text-align:center; color:#357497; font-size:14px; border:0;}
.login .login-bottom { width:1000px; float:left; color:#FFF; text-align:center; margin-top:100px;}


    </style>

    <script>
        var loginUrl = '@Url.Content("~/Login")';
    
    </script>

    <script type="text/javascript">
        $(document).ready(function () {
            $("#txtUserName").focus();
            //            $("#imgValiCode").bind("click", function () {
            //                $(this).attr("src", "/Login/GetValidateCode?time=" + (new Date()).getTime());
            //            });
            $("#btnLogin").bind("click", function () {
                if (checkInput()) {
                    form1.submit();
                }
            });

            $("#btnReset").bind("click", function () {
                window.location.href = loginUrl;
            });
            var hdjsAlert = $("#hdjsAlert").val();
            if (hdjsAlert != "") {
                alert(hdjsAlert);
            }
        });
    </script>

    <script language="javascript" type="text/javascript">


        function checkInput() {
            if (!validateFocus("txtUserName", "用户名", "NotEmpty", false)) {
                return false;
            }
            return true;
        }

        function keyPress() {
            if (event.keyCode && event.keyCode == 13) {
                if (checkInput()) {
                    form1.submit();
                }
            }
        }

    </script>

</head>
<body  onkeypress="keyPress()">
    @using (Html.BeginForm("Login", "Login", FormMethod.Post, new { id = "form1" }))
    {
        
        <div class="login">
            <div class="login-logo">
                <img src="@Url.Content("~/Content/images/login05.jpg")"></div>
            <div class="login-div">
                <div class="login-title">
                    内网分控管理系统</div>
                <div class="login-dl">
                    <table width="300" border="0" style="margin: 20px auto;">
                        <tr>
                            <td height="50">
                                用户名:</td>
                            <td>@Html.TextBox("txtUserName", ViewData["UserName"])
                            </td>
                        </tr>
                        <tr>
                            <td>
                                密 码:</td>
                            <td>
                               @Html.Password("txtPassword", "")</td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td height="70">
                                <table width="100%" border="0">
                                    <tr>
                                        <td>
                                            <input name="btnLogin" id="btnLogin" type="button" class="button1" value="登录" /></td>
                                        <td>
                                            <input name="btnReset" id="btnReset" type="button" class="button2" value="重置" /></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="login-bottom">
                技术支持：易灵软件</div>
        </div>
        
        @Html.Hidden("hdUrl", ViewData["url"] == null ? "" : ViewData["url"].ToString())
        @Html.Hidden("hdType", ViewData["type"] == null ? "" : ViewData["type"].ToString())

        @Html.Hidden("hdjsAlert", (ViewData["jsAlert"]))
    }
</body>
</html>
